/* 欢迎页面样式 */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}

.title-section {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
}

.main-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: bold;
    margin-bottom: 20px;
}

.sub-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--gray);
    max-width: 80%;
    margin: 0 auto;
}

/* 倒计时样式 */
.countdown-section {
    margin-bottom: 60px;
    opacity: 0;
}

.countdown-label {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 15px 10px;
    width: 80px;
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.countdown-text {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 音乐盒样式 */
.music-box-section {
    margin-bottom: 60px;
    opacity: 0;
}

.music-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.music-box-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 15s linear infinite;
}

.music-box-center {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-icon {
    font-size: 40px;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.music-box-decoration {
    position: absolute;
    background-color: var(--accent);
}

.decoration-top {
    top: 0;
    left: 50%;
    width: 4px;
    height: 20px;
    transform: translateX(-50%) translateY(-50%);
}

.decoration-bottom {
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 20px;
    transform: translateX(-50%) translateY(50%);
}

.decoration-left {
    left: 0;
    top: 50%;
    width: 20px;
    height: 4px;
    transform: translateX(-50%) translateY(-50%);
}

.decoration-right {
    right: 0;
    top: 50%;
    width: 20px;
    height: 4px;
    transform: translateX(50%) translateY(-50%);
}

/* 进入按钮 */
.enter-button-section {
    opacity: 0;
}

.enter-button {
    font-size: 1.2rem;
    padding: 12px 30px;
}

/* 动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cake-explode {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
    100% { transform: translateY(120vh) scale(0.5); opacity: 0; }
}

@keyframes firework-burst {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes count-down {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 蛋糕和粒子效果 */
#cake-container, #particle-container, #firework-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cake-piece {
    position: absolute;
    transform-origin: bottom center;
    opacity: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.firework {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .countdown-boxes {
        gap: 20px;
    }
    
    .countdown-box {
        width: 100px;
        padding: 20px 15px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .music-box {
        width: 250px;
        height: 250px;
    }
    
    .music-icon {
        font-size: 50px;
    }
}
